package com.sky.service;

import com.sky.dto.OrdersPaymentDTO;
import com.sky.dto.OrdersSubmitDTO;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderSubmitVO;

/**
 * @Author by 孙有泽
 * @Date 2025/3/23 21:04
 * @Description
 */
public interface OrderService {

    /*
     * @author 孙有泽
     * @date 2025/3/23 21:08
     * @description 用户下单
     */
    OrderSubmitVO sumbit(OrdersSubmitDTO orderSubmitDto);

    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);
}
